package main

import "fmt"

// 接口 是 引用类型
type MotherInterface interface {
	Mother()
}

type FatherInterface interface {
	Father()
}
type AInterface interface {
	MotherInterface
	FatherInterface
	ASay()
}
type A struct {
}

func (a *A) ASay() {
	fmt.Println("ASay()")
}
func (a *A) Mother() {
	fmt.Println("AMother()")
}
func (a *A) Father() {
	fmt.Println("AFather()")
}

func main() {
	var a A
	var f FatherInterface = &a
	var m MotherInterface = &a
	f.Father()
	m.Mother()

}
